<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>移动的汽车示例</title>
    <style>

        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        .road {
            width: 100%;
            height: 100%;
            background: url('read.png') no-repeat center center;
            background-size: cover;
            position: relative;
            overflow: hidden;
        }


        .car {
            position: absolute;
            bottom: 50px;
            left: 50px;
            width: 200px;
            transition: transform 1s linear;
            cursor: pointer;
        }

        .car:hover {
            transform: translateX(300px);
        }
    </style>
</head>
<body>
<div class="road">
    <!-- 替换成你自己的汽车图片路径 -->
    <img class="car" src="car.png" alt="car">
</div>
</body>
</html>
